package org.example.Day5.Hash1;

import java.util.HashSet;
import java.util.Set;

public class Test {
    public static void main(String[] args){
        Set<Hashtest> Hash = new HashSet<>();
        Hashtest s1 = new Hashtest("⾄尊宝",20, 169.6);
        Hashtest s2 = new Hashtest("蜘蛛精",23, 169.6);
        Hashtest s3 = new Hashtest("蜘蛛精",23, 169.6);
        Hashtest s4 = new Hashtest("⽜魔王",48, 169.6);
        Hash.add(s1);
        Hash.add(s2);
        Hash.add(s3);
        Hash.add(s4);

        for(Hashtest s : Hash){
            System.out.println(s);
            }
    }
}
